
import { INestApplication } from '@nestjs/common';
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
export class SwaggerConfig {
    constructor() {
    }
    static register(app: INestApplication<any>) {
        const config = new DocumentBuilder()
        .setTitle('rbac 管理后台')
        .setDescription('The cats API description')
        .setVersion('1.0')
        .addTag('cats')
        .build();
      const document = SwaggerModule.createDocument(app, config);
      SwaggerModule.setup('api', app, document);
    }
    
}